Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update the phantom while typing #62

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timfjord
Copy link
Collaborator

@timfjord timfjord commented Oct 5, 2022

Closes #52

This PR tries to emulate VSCode when the phantom(ghost) text is updated while typing(without triggering an extra request).
Unfortunately, due to the phantom API limitations, it is currently not possible(see the attached video)

phantom.mov

The main problem is that the cursor always jumps when updating the phantom in real time.

@timfjord
Copy link
Collaborator Author

timfjord commented Oct 5, 2022

I opened it just to have some reference but, in general, this PR should be merged only when the problem with the cursor is fixed(see sublimehq/sublime_text#5536 and #54)

@jfcherng
Copy link
Collaborator

jfcherng commented Oct 5, 2022

I feel, at this moment, the UX in the video is worse than without this PR.

@timfjord
Copy link
Collaborator Author

timfjord commented Oct 5, 2022

Just in case, here is how it works in VSCode

vscode.mov

@timfjord
Copy link
Collaborator Author

timfjord commented Oct 5, 2022

Yes, it is horrible. That's why we shouldn't merge this one.

We could close it, as I opened it purely to have some reference

@jfcherng
Copy link
Collaborator

jfcherng commented Oct 5, 2022

We could close it, as I opened it purely to have some reference

Keep it open is fine to help us remember this 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle text changes when phantom completion is visible
2 participants